<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试结果</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="stylesheet" href="../css/test.css">
</head>
<body>
    <img class="pass_img" src="../img/img_tongguo@2x.png" alt="">
    <div class="content_box">
        <div class="text_1">恭喜您！测试通过</div>
        <div class="text_2" id="fenshu">80</div>
        <div class="text_3">您的得分</div>
    </div>
    <div class="btn" id="close">去学习别的课程</div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="../js/rem.js"></script>
<script src="../js/test.js"></script>
<script>

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg); //匹配目标参数
        if (r != null) return unescape(r[2]); return null; //返回参数值
    }
    var fenshu = getUrlParam('exam_score');
    $('#fenshu').html(fenshu);

    $("#close").on("touchstart",function(){
        close();
    });
</script>
</html>